package x10.server;

import java.util.logging.Logger;

import x10.eventServices.EventServiceManager;
import x10.log.LoggingService;
import x10.properties.PropertiesManager;

/**
 *
 * @author Denny Sheirer
 * @date   2011
 */
public class X10Server{
    Logger logger = Logger.getLogger(this.getClass().getName());
    PropertiesManager properties;
    LoggingService loggingService;
    EventServiceManager eventServiceManager = new EventServiceManager();

    String propertiesFile = "config//server.properties";

    public X10Server(){
	loggingService = new LoggingService();
	logger.info("X10Server starting");
	//startServices();
    }

    public X10Server(PropertiesManager properties){
	this();
	this.properties = properties;
    }

    public EventServiceManager getEventServiceManager(){
	return eventServiceManager;
    }
    
    public void startServices(){
	eventServiceManager.startEventLogger();
	eventServiceManager.startTCPConnectionManager(1010, 5);
	eventServiceManager.startGUIManager();
	eventServiceManager.startCM15A();
    }
}
